/*
 * @Author: jiangxin
 * @Date: 2022-08-14 10:31:18
 * @Company: orientsec.com.cn
 * @Description:
 */
const baseSidebar = require("./sidebars/baseSidebar");
const toolFragmentSidebar = require("./sidebars/toolFragmentSidebar");
const microSidebar = require("./sidebars/microSidebar");
const compileSidebar = require("./sidebars/compileSidebar");
const graphicsSidebar = require("./sidebars/graphicsSidebar");
const typescriptSidebar = require("./sidebars/typescriptSidebar");

module.exports = {
  baseSidebar: [
    {
      id: "main",
      type: "doc",
      label: "测试用的"
    },
    {
      type: "category",
      label: "javascript",
      collapsible: true,
      collapsed: false,
      link: {
        type: "generated-index",
        title: "目录总览"
      },
      items: [...baseSidebar.js]
    },
    {
      type: "category",
      label: "html",
      link: {
        type: "generated-index",
        title: "目录总览"
      },
      items: [...baseSidebar.html]
    },
    {
      type: "category",
      label: "css",
      link: {
        type: "generated-index",
        title: "目录总览"
      },
      items: [...baseSidebar.css]
    },
    {
      type: "category",
      label: "其它",
      link: {
        type: "generated-index",
        title: "目录总览"
      },
      items: [...baseSidebar.webother]
    }
  ],
  toolFragmentSidebar: [
    {
      id: "toolfragmentmain",
      type: "doc",
      label: "11111"
    },
    {
      type: "category",
      label: "javascript",
      link: {
        type: "generated-index",
        title: "目录总览"
      },
      items: [...toolFragmentSidebar.items]
    },
    {
      type: "category",
      label: "css",
      link: {
        type: "generated-index",
        title: "目录总览"
      },
      items: [{ type: "doc", id: "toolFragment/css/aaaa" }]
    }
  ],
  nodeSidebar: ["node/aaa", "node/bbb"],
  microSidebar: [
    {
      id: "microMain",
      type: "doc",
      label: "11111"
    },
    {
      type: "category",
      label: "qiankun",
      link: {
        type: "generated-index",
        title: "目录总览"
      },
      items: [...microSidebar.qiankun]
    }
  ],
  compileSidebar: [
    {
      id: "compile/index",
      type: "doc",
      label: "测试用的"
    },
    {
      id: "compile/browserslist",
      type: "doc"
    },
    {
      type: "category",
      label: "babel",
      collapsible: true,
      collapsed: false,
      items: [...compileSidebar.babel]
    },
    {
      type: "category",
      label: "esbuild",
      collapsible: true,
      collapsed: false,
      items: [...compileSidebar.esbuild]
    },
    {
      type: "category",
      label: "rollup",
      collapsible: true,
      collapsed: false,
      items: [...compileSidebar.rollup]
    },
    {
      type: "category",
      label: "webpack",
      collapsible: true,
      collapsed: false,
      items: [...compileSidebar.webpack]
    }
  ]
  // nodeSidebar: [{type: 'autogenerated', dirName: '.'}],
  //   docs: [{type: 'autogenerated', dirName: '.'}],
};

